package br.com.nextsql.dao;
import java.sql.*;
public abstract class DbConnection {
    //conexão MySQL
    
    final private String driver = "com.mysql.jdbc.Driver";
    final private String url = "jdbc:mysql://localhost:3306/";
    final private String usuario = "root";
    final private String senha = "1";
    public Connection getDBConnection() throws ClassNotFoundException, SQLException {
        Class.forName(driver);
        return DriverManager.getConnection(url, usuario, senha);
    }
}
